package edu.cque.hello;

/**
 * @author Hua
 * @create 2022-03-25 17:09
 */
public class Car {
    private Integer id;
    private String color;
    private Double price;
    private String type;

    public Car(Integer id, String color, Double price, String type) {
        this.id = id;
        this.color = color;
        this.price = price;
        this.type = type;
    }

    public Car() {
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getColor() {
        return color;
    }

    public void setColor(String color) {
        this.color = color;
    }

    @Override
    public String toString() {
        return "Car{" +
                "id=" + id +
                ", color='" + color + '\'' +
                ", price=" + price +
                ", type='" + type + '\'' +
                '}';
    }

    public Double getPrice() {
        return price;
    }

    public void setPrice(Double price) {
        this.price = price;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }
}
